package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.domain.Notice;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface IEmployeeService {
    void delete(Long id);

    //更新关联表数据
    void update(Employee employee, Long[] ids);

    //插入关联表数据
    void save(Employee employee, Long[] ids);

    Employee get(Long id);

    List<Employee> listAll();


    //分页功能
    PageInfo<Employee> query(QueryObject qo);

    Employee queryByUsernameAndPassword(Employee employee);


    Employee queryByUsername(String username);

    Workbook exportXls();

    void importXls(MultipartFile file) throws Exception;

    Employee queryPasswordById(Long id,String oldPassword);

    void updatePassword(Long id, String newPassword);

    Employee queryPassword(String oldPassword);

    void updatePasswordById(Long id);

    Employee updatePassword2(String oldPassword, String newPassword);

    void EmpDisableOrRecovery(Long id);

    boolean queryStatusByUsername(String username);


}
